package lab02.test12;

public class Test12 {

    public static void main(String[] args) {

        Circle circle = new Circle();
        circle.raduis = 1;

        System.out.println("半径为" + circle.raduis +"的圆的面积为：" + circle.area());
        System.out.println("半径为" + circle.raduis +"的圆的周长为：" + circle.perimeter());

        Rectangular rectangular =new Rectangular();
        rectangular.width = 1;
        rectangular.height = 2;

        System.out.println("矩形的面积为：" + rectangular.area());
        System.out.println("矩形的周长为：" + rectangular.perimeter());
    }
}
